package com.example.mygrade.repository;

import com.example.mygrade.domain.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherRepository extends JpaRepository<Teacher,Integer> {
    List<Teacher> findByTnameAndPassword(String name,String password);

    Teacher findByTnameLike(String name);
}
